/* USER CODE BEGIN Header */
/**
  ******************************************************************************
  * @file    stm32f4xx_it.c
  * @brief   Interrupt Service Routines.
  ******************************************************************************
  * @attention
  *
  * Copyright (c) 2022 STMicroelectronics.
  * All rights reserved.
  *
  * This software is licensed under terms that can be found in the LICENSE file
  * in the root directory of this software component.
  * If no LICENSE file comes with this software, it is provided AS-IS.
  *
  ******************************************************************************
  */
/* USER CODE END Header */

/* Includes ------------------------------------------------------------------*/
#include "stm32f4xx_it.h"
/* Private includes ----------------------------------------------------------*/


/* Private typedef -----------------------------------------------------------*/


/* Private define ------------------------------------------------------------*/


/* Private macro -------------------------------------------------------------*/


/* Private variables ---------------------------------------------------------*/


/* Private function prototypes -----------------------------------------------*/


/* Private user code ---------------------------------------------------------*/


/* External variables --------------------------------------------------------*/
//extern DMA_HandleTypeDef hdma_adc1;
//extern CAN_HandleTypeDef hcan1;
//extern CAN_HandleTypeDef hcan2;
//extern SPI_HandleTypeDef hspi1;
//extern SPI_HandleTypeDef hspi2;
//extern TIM_HandleTypeDef htim4;
//extern TIM_HandleTypeDef htim6;
//extern DMA_HandleTypeDef hdma_usart1_tx;
//extern UART_HandleTypeDef huart1;
//extern TIM_HandleTypeDef htim2;



/******************************************************************************/
/*           Cortex-M4 Processor Interruption and Exception Handlers          */
/******************************************************************************/
/**
  * @brief This function handles Non maskable interrupt.
  */
void NMI_Handler(void)
{
  while (1)
  {
  }
}

/**
  * @brief This function handles Hard fault interrupt.
  */
//void HardFault_Handler(void)
//{
//  while (1)
//  {
//  }
//}

/**
  * @brief This function handles Memory management fault.
  */
void MemManage_Handler(void)
{
  while (1)
  {
  }
}

/**
  * @brief This function handles Pre-fetch fault, memory access fault.
  */
void BusFault_Handler(void)
{
  while (1)
  {
  }
}

/**
  * @brief This function handles Undefined instruction or illegal state.
  */
void UsageFault_Handler(void)
{
  while (1)
  {
  }
}

///**
//  * @brief This function handles System service call via SWI instruction.
//  */
//void SVC_Handler(void)
//{

//}

/**
  * @brief This function handles Debug monitor.
  */
void DebugMon_Handler(void)
{

}

///**
//  * @brief This function handles Pendable request for system service.
//  */
//void PendSV_Handler(void)
//{

//}

///**
//  * @brief This function handles System tick timer.
//  */
//void SysTick_Handler(void)
//{
//}

/******************************************************************************/
/* STM32F4xx Peripheral Interrupt Handlers                                    */
/* Add here the Interrupt Handlers for the used peripherals.                  */
/* For the available peripheral interrupt handler names,                      */
/* please refer to the startup file (startup_stm32f4xx.s).                    */
/******************************************************************************/

/**
  * @brief This function handles CAN1 TX interrupts.
  */
// void CAN1_TX_IRQHandler(void)
// {
//  HAL_CAN_IRQHandler(&hcan1);
// }

// /**
//  * @brief This function handles CAN1 RX0 interrupts.
//  */
// void CAN1_RX0_IRQHandler(void)
// {
//  HAL_CAN_IRQHandler(&hcan1);
// }

///**
//  * @brief This function handles TIM2 global interrupt.
//  */
//void TIM2_IRQHandler(void)
//{
//  HAL_TIM_IRQHandler(&htim2);
//}

///**
//  * @brief This function handles TIM4 global interrupt.
//  */
//void TIM4_IRQHandler(void)
//{
//  HAL_TIM_IRQHandler(&htim4);
//}

///**
//  * @brief This function handles SPI1 global interrupt.
//  */
//void SPI1_IRQHandler(void)
//{
//  HAL_SPI_IRQHandler(&hspi1);
//}

///**
//  * @brief This function handles SPI2 global interrupt.
//  */
//void SPI2_IRQHandler(void)
//{
//  HAL_SPI_IRQHandler(&hspi2);
//}

///**
//  * @brief This function handles USART1 global interrupt.
//  */
//void USART1_IRQHandler(void)
//{
//  HAL_UART_IRQHandler(&huart1);
//}

///**
//  * @brief This function handles TIM6 global interrupt, DAC1 and DAC2 underrun error interrupts.
//  */
//void TIM6_DAC_IRQHandler(void)
//{
//  HAL_TIM_IRQHandler(&htim6);
//}

///**
//  * @brief This function handles DMA2 stream0 global interrupt.
//  */
//void DMA2_Stream0_IRQHandler(void)
//{
//  HAL_DMA_IRQHandler(&hdma_adc1);
//}

///**
//  * @brief This function handles CAN2 TX interrupts.
//  */
//void CAN2_TX_IRQHandler(void)
//{
//  HAL_CAN_IRQHandler(&hcan2);
//}

///**
//  * @brief This function handles CAN2 RX0 interrupts.
//  */
//void CAN2_RX0_IRQHandler(void)
//{
//  HAL_CAN_IRQHandler(&hcan2);
//}

///**
//  * @brief This function handles DMA2 stream7 global interrupt.
//  */
//void DMA2_Stream7_IRQHandler(void)
//{
//  HAL_DMA_IRQHandler(&hdma_usart1_tx);
//}


